package supercafe.more;

import java.util.Vector;

public class Area {
	public static Vector<Area> areasWithTables = null;
	private	int areaId;
	private String areaName;
	private Vector<Table> tables;
	
	public Area(int areaId,String areaName){
		this.areaId = areaId;
		this.areaName = areaName;
		tables = new Vector<Table>();
	}
	
	public void addTable(Table table){
		tables.add(table);
	}
	
	public void setTables(Vector<Table> tables){
		this.tables = tables;
	}
	
	public Table getTable(int index){
		return tables.get(index);
	}
	
	public Vector<Table> getTables(){
		return tables;
	}
	
	public String toString(){
		return areaName;
	}
	/*
	public boolean equals(Object o){
		Area another = (Area)o;
		return this.areaName.equals(another.areaName);
	}
	*/
}
